package com.zbf.web;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/7/9  15:29
 * 描述:
 */
@RestController
public class TestController {


    private Logger logger=LoggerFactory.getLogger("TTTT");

    private SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

    @RequestMapping("test02")
    public String test01(){
        logger.info("======日志信息====="+simpleDateFormat.format(new Date()));
        System.out.println("=========test01========");
        return "ok";
    }

}
